package com.example.jetpackstu.ui.news

import androidx.lifecycle.ViewModel
import com.example.jetpackstu.logic.Repository

class ListViewModel : ViewModel() {

    val allNews get() = Repository.allNews()

    fun delNews(id:Long){
        Repository.newsDel(id)
    }
}